From 70bd211c1a00aaf9a1927ae904a7015e529203e1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 1 Mar 2001 19:31:06 +0000 Subject: [PATCH] (Fwindow_end): Call move_it_past_eol only if ending up on a partially visible line. --- src/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 71e490724b6..b02cc6b7969 100644 --- a/src/window.c +++ b/src/window.c @@ -930,7 +930,8 @@ if it isn't already recorded.") start_display (&it, w, startp); move_it_vertically (&it, window_box_height (w)); - move_it_past_eol (&it); + if (it.current_y < it.last_visible_y) + move_it_past_eol (&it); value = make_number (IT_CHARPOS (it)); if (old_buffer) -- 2.30.2